package graph.mcg;

import java.util.ArrayList;
import java.util.List;

public class LoopBegin extends CGNode {
	private List<String> ssavars = new ArrayList<String>();

	public LoopBegin() {
		ssavars.add("Counter");
	}

	public LoopBegin(List<String> vars) {
		ssavars.add("Counter");
		if (vars != null) {
			for (String var : vars) {
				ssavars.add(var.substring(0, 1).toUpperCase() + var.substring(1));
			}
		}
		//System.out.println("+++++++"+ssavars);
	}

	public List<String> getSsavars() {
		return ssavars;
	}

	public void setSsavars(List<String> ssavars) {
		this.ssavars = ssavars;
	}

	@Override
	public String greateCLPTerm() {
		// TODO Auto-generated method stub
		return "LoopBegin";
	}

	@Override
	public List<CGNode> nextPossibleNodes() {
		// TODO Auto-generated method stub
		ArrayList<CGNode> nodes = new ArrayList<CGNode>();
		nodes.add(nextnode);
		return nodes;
	}

	public String toString() {
		return "LoopBegin";
	}

}
